package com.jflame.tomcat.http;

import java.io.*;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User:22954
 * Date:2024-07-21
 * Time:15:11
 */
public class JFResponse implements HttpServletResponse {
    private String characterEncoding;
    private String contentType;
    private long contentLength;
    private PrintWriter pw;

    public JFResponse(OutputStream os) {
        pw = new PrintWriter(new OutputStreamWriter(os));
    }

    @Override
    public PrintWriter getWriter() throws IOException {
        return pw;
    }

    @Override
    public void setCharacterEncoding(String var1) {
        this.characterEncoding = var1;
    }

    @Override
    public void setContentLength(int var1) {
        this.contentLength = var1;
    }

    @Override
    public void setContentLengthLong(long var1) {
        this.contentLength = var1;
    }

    @Override
    public void setContentType(String var1) {
        this.contentType = var1;
    }
}
